


class Person:
    def __init__(self,name,age):#构造器 :确定类在实例化时有哪些属性
        self.name = name
        self.age = age
        self.sex = 'm'
        print(type(self))


# p1 = Person(name='namehh', age=23)
# print(p1.sex)

p1 = Person('nini',99)
print(p1.name,p1.age)